import RequestUtil from '../utils/request.js';
import API_CONFIG from '../config/api.js';

class ChatService {
    static async sendMessage(question) {
        try {
            const response = await RequestUtil.post(API_CONFIG.ENDPOINTS.CHAT, { question });
            return response;
        } catch (error) {
            throw error;
        }
    }
}

export default ChatService; 